package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class UserEntity {
    private String id;

    private String userName;

    private String password;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    private String introduce;

    private String hobby;

    private String email;

    private int activation;

    private int sex;

    private List<PostsEntity> postsEntity;
}
